//
// Created by Administrator on 2025/8/22.
//

#include "Test9.h"
#include <iostream>


void Test9C1::foo1() {
    std::cout << this->age << this->chr;
}


void Test9C1::foo2() {

}


void friendVisitor(Test9C1 &c) {
    std::cout << "friend method" << c.age << "  " << c.chr;
}

void Test9C1::foo3() {
    static int count = 0;
    count ++;
    std::cout << count;
}

void Test9C1::foo4(Test9C1 &c) {
    std::cout << c.chr << " " << c.age;
}

void Test9C1::foo5() {
    std::cout << "??";
}

void Test9C2::foo5() {
    Test9C1::foo5();
}

void Test9C2::foo6() {
    Test9C1::foo5();
}

void Test9C1::foo7() const {
    this->count ++;
}

constexpr int test9Foo1(int c) {
    return c * c;
}


void Test9C3AbstractClassImpl::foo1() {

}

void Test9C3AbstractClassImpl::foo2() {

}

void Test9C3AbstractClassImpl::foo3() {

}

void Test9C3AbstractClassImpl::foo4() {
}


void test9Foo5(std::vector<int> &c) {
    std::cout << &c;
}
